package com.cmc6.user.model.dto;

import com.cmc6.common.constant.BaseRegexConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

/**
 * {@link com.cmc6.user.model.entity.UserLoginDO}
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserLoginInsertOrUpdateDTO extends EmailNotBlankDTO {

    @ApiModelProperty(value = "用户主键 id")
    private Long userId;

    @ApiModelProperty(value = "密码")
    private String password;

    @Pattern(regexp = BaseRegexConstant.PHONE)
    @ApiModelProperty(value = "手机号")
    private String phone;

}
